<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
</head>
<body>
<form:form name="listForm" action="" modelAttribute="brandLevel" method="post" class="form-inline" role="form">
	    <input type="hidden" name="deleteIds" >
    	<div class="o-l-search-builder f_1">
	         <div class="f_8">
	              <div class="f_2">
	                  <div class="col-sm-8 f_6">
	                        <form:input id="levelName" path="levelName" class="f_5" placeholder="等级名称"/>
	                  </div>
	                  <button type="submit" class="btn btn-warning btn_1">查&nbsp;询</button>
	             </div>
	         </div>
	         <div class="o-l-chevron-down"><a href="#" class="btn btn-default" data-toggle="collapse" data-target="#statement-search-builder" id="chevronDownBtn" role="button"><span id="glyphiconspan" class="glyphicon glyphicon-chevron-up"></span></a>
	         </div>
	     </div>
    	<div class="o-l-search-builder f_1">
              <button type="button" class="btn btn-danger btn_3 btn_right" onclick="Oosp_DelAll('${contextPath}/biz/brand/level/deleteAll','table1')">删&nbsp;除</button>
              <button type="button" class="btn btn-info btn_3 btn_right" onclick="window.open('${contextPath}/biz/brand/level/add','_self')">新&nbsp;建</button>
        </div>   
		<tags:message content="${message}"/>
		<div class="o-l-search-builder f_9">
		<table class="table table-striped table-hover o-l-table table-bordered" id="table1">
			<thead class="t_1">
				<tr>
					<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
					<th>等级名称</th>
					<th>编码</th>
					<th>类别</th>
					<th>备注</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${page.list}" var="brandLevel">
					<tr  data-herf="${contextPath}/biz/brand/level/${brandLevel.id}/view" data-target="_self">
						<td class="o-l-tab-ckb">
							<input type="checkbox" data-ckb-id="${brandLevel.id}">
						</td>
						<td>${brandLevel.levelName}</td>
						<td>${brandLevel.code}</td>
						<td>
							<ossp:value dictType="BRAND_TYPE" key="${brandLevel.levelType}"/>
						</td>
						<%--<td>${brandLevel.startScore}</td>
						<td>${brandLevel.endScore}</td> --%>
						<td>${brandLevel.remark}</td>									
					</tr>
				</c:forEach>
				
			</tbody>
		</table>
		</div>
		<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}" url="" total="${page.total}"/>
<script type="text/javascript" src="${staticPath}/js/list.js"></script>
</form:form>
</body>
</html>